<?php
namespace app\common\gateway\data;

use GatewayWorker\Lib\Gateway;

class ClientSender implements Sender
{
    protected $clientId;

    public function __construct($clientId)
    {
        $this->clientId = $clientId;
    }

    public function send(Data $data)
    {
        Gateway::sendToClient($this->clientId,$data->getData());
    }
}
